package com.babyqiao.wallpaper.manager.entity.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 两级分类VO
 *
 * @author qinglongzhai
 * @date 2020/12/13
 */
public class CategoryVO implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    private String level;

    private String title;

    private String parentId;

    private String cover;

    private List<CategoryVO> children = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public List<CategoryVO> getChildren() {
        return children;
    }


    public void setChildren(List<CategoryVO> children) {
        this.children = children;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        return "CategoryVO{" +
                "id='" + id + '\'' +
                ", level='" + level + '\'' +
                ", title='" + title + '\'' +
                ", parentId='" + parentId + '\'' +
                ", cover='" + cover + '\'' +
                ", children=" + children +
                '}';
    }
}
